from lib.sensors.ssd1306.render import renderer
from utils import math

class ShapeImageRender(renderer.Renderer):
    def __init__(self, oled):
        super().__init__(oled)

    def circle(self, a,b,r):
        points = math.get_circle_y_all(a,b,r)
        for point in points:
            self.__oled.pixel(int(point[0]), int(point[1]))